Part Number Hot Search : 
68HC11 74AC244 RF20200 P1101A2 MBU131 90814 AN0001 VSC882
Product Description
Full Text Search
 

To Download A16450 Datasheet File

  If you can't view the Datasheet, Please click here to try to view without PDF Reader .  
 
 


  Datasheet File OCR Text:
  altera corporation 65 A16450 universal asynchronous receiver/transmitter september 1996, ver. 1 data sheet a-ds-A16450-01 features n A16450 megacore function implementing a universal asynchronous receiver/transmitter (uart) n optimized for flex and max architectures n programmable word length, stop bits, and parity n full duplex operation n programmable baud rate generator n prioritized interrupt control n internal diagnostic/loopback capabilities n uses approximately 372 flex logic elements (les) n functionally based on the national semiconductor corporation ns16450 device, except as noted in ?ariations & clarifications?on page 79 general description the A16450 megacore function implements a universal asynchronous receiver/transmitter (uart), which provides an interface between a microprocessor and a serial communications channel. the A16450 receives and transmits data in a variety of configurations, including 5-, 6-, 7-, or 8-bit data words; odd, even, or no parity; and 1, 1.5, or 2 stop bits. the A16450 includes an internal baud rate generator and interrupt control. see figure 1 . figure 1. A16450 symbol nads clk cs0 cs1 ncs2 ncts ndcd ndsr mr rclk rd nrd nri sin wr nwr a[2..0] din[7..0] A16450 nbaudout csout ddis ndtr intr nout1 nout2 nrts sout dout[7..0]
66 altera corporation A16450 universal asynchronous receiver/transmitter data sheet table 1 describes the input and output ports of the A16450 . table 1. A16450 ports (part 1 of 2) name type polarity description nads input low address strobe. enable signal to the address input receiver. the positive edge of nads latches the register address bus into the address input register. clk input clock. provides the master timing reference to the A16450 . cs0 input high chip select 0. the A16450 is selected when cs0 , cs1 , and ncs2 are asserted, which permits read and write transactions to internal registers. cs1 input high chip select 1. the A16450 is selected when cs0 , cs1 , and ncs2 are asserted, which permits read and write transactions to internal registers. ncs2 input low chip select 2. the A16450 is selected when cs0 , cs1 , and ncs2 are asserted, which permits read and write transactions to internal registers. ncts input low clear to send. indicates that the modem is ready to exchange data. a change in input state from low to high is recorded in bit 0 of the modem status register. if the modem status interrupt is enabled when ncts changes state, an interrupt is generated. this input? complement is recorded in bit 4 of the modem status register. ndcd input low data carrier detect. indicates that the modem or data set detected a data carrier. a change in input state is recorded in bit 3 of the modem status register. if the modem status interrupt is enabled when ndcd changes state, an interrupt is generated. this input? complement is recorded in bit 7 of the modem status register. ndsr input low data set ready. indicates that the modem or data set is ready to establish the communications link with the A16450 . a change in input state is recorded in bit 1 of the modem status register. if the modem status interrupt is enabled when ndsr changes state, an interrupt is generated. this input? complement is recorded in bit 5 of the modem status register. mr input high master reset. clears all registers (except the receiver buffer, transmitter holding, and divisor registers) to their initial state. resets control logic to initial state. rclk input receiver clock. operates at 16 times the baud rate clock. rd input high read control. when rd or nrd is asserted and the A16450 is selected, read transactions from internal registers are possible. nrd input low read control. when rd or nrd is asserted and the A16450 is selected, read transactions from internal registers are possible. nri input low ring indicator. indicates that the modem or data set detected the ring signal. a change in input state is recorded in bit 2 of the modem status register. if the modem status interrupt is enabled when nri changes state, an interrupt is generated. this input? complement is recorded in bit 6 of the modem status register.
altera corporation 67 A16450 universal asynchronous receiver/transmitter data sheet sin input serial data input. receives data for the A16450 . wr input high write control. when wr or nwr is asserted and the A16450 is selected, write transactions to internal registers are possible. nwr input low write control. when wr or nwr is asserted and the A16450 is selected, write transactions to internal registers are possible. a[2..0] input register address bus. selects one of the internal registers. see table 2 . din[7..0] input data input bus. the microprocessor writes to internal registers via the din[7..0] bus. nbaudout output low baud out. transmitter clock that is controlled by the programmable baud rate generator. operates at 16 times the baud rate clock. csout output high chip select output. indicates that the A16450 has been selected (i.e., the cs0 , cs1 and ncs2 inputs are asserted). ddis output high driver disable. indicates that the microprocessor is reading data from the A16450 . this output is intended as a disable or direction control between the A16450 and the microprocessor. ndtr output low data terminal ready. indicates that the A16450 is ready to exchange data. this output is controlled by writing to bit 0 of the modem control register. intr output high interrupt. indicates that an enabled interrupt condition has been met. nout1 output low user-programmable output 1. this output is controlled by writing to bit 2 of the modem control register. nout2 output low user-programmable output 2. this output is controlled by writing to bit 3 of the modem control register. nrts output low request to send. indicates that the A16450 is ready to exchange data. this output is controlled by writing to bit 1 of the modem control register. sout output high serial data out. serial (transmitter) data out. when mr is asserted, the sout output is asserted. dout[7..0] output data output bus. table 1. A16450 ports (part 2 of 2) name type polarity description
68 altera corporation A16450 universal asynchronous receiver/transmitter data sheet functional description figure 2 shows the A16450 block diagram. figure 2. A16450 block diagram sin rclk a[2..0] cs0 cs1 ncs2 nads mr rd nrd wr nwr ddis csout din[7..0] nrts ndtr nout1 nout2 ncts ndsr ndcd nri intr sout nbaudout dout[7..0] clk receiver register & control decode & control logic receiver buffer register line control register divisor register (msb) divisor register (lsb) line status register transmitter holding register modem control register modem status register interrupt enable register interrupt id register output data multiplexer baud generator transmitter register & control modem control logic interrupt control logic
altera corporation 69 A16450 universal asynchronous receiver/transmitter data sheet register address map the state of the a[2..0] inputs determines which internal register the microprocessor addresses. see table 2 . the divisor register access bit ( drab ) allows access to the divisor register. the drab is bit 7 of the line control register. note: (1) the x indicates ?on? care. registers the A16450 megacore function contains the following registers: n receiver buffer n transmitter holding n divisor n interrupt enable n interrupt identification n line control n modem control n line status n modem status n scratchpad table 2. register address map drab (1) a2 a1 a0 register 0 0 0 0 receiver buffer register?ead only transmitter holding register?rite only 1 0 0 0 divisor register (lsb) 0 0 0 1 interrupt enable register 1 0 0 1 divisor register (msb) x 0 1 0 interrupt id register x 0 1 1 line control register x 1 0 0 modem control register x 1 0 1 line status register x 1 1 0 modem status register x 1 1 1 scratchpad register
70 altera corporation A16450 universal asynchronous receiver/transmitter data sheet receiver buffer register the receiver buffer register is a read-only register that contains the last complete data word sample received by the A16450 . transmitter holding register the transmitter holding register is a write-only register that loads the next data byte to be transmitted by the A16450 . divisor register the divisor register controls the programmable baud rate generator. the 16-bit divisor performs an integer frequency divide of the input clock. the nbaudout output becomes the transmitter clock that operates at 16 times the baud rate clock. for example, if the input clock is 10 mhz and the divisor register is set to a binary 2 ( 0000000000000010 ), the nbaudout will be a 5-mhz output with a 50/50 duty cycle. the effective baud rate will be 1/16th of 5 mhz, or 312,500 baud. in addition, the nbaudout output may be wrapped to the receiver section input clock ( rclk ) to provide the receiver clock that operates at 16 times the baud rate clock. the A16450 does not support a divide-by-0 operation, which produces the same results as a divide-by-1 operation for the nbaudout output. however, a divide-by-0 operation prevents the transmitter from functioning because an internal signal, baud_en , is not generated. the baud_en signal enables the clock in the transmitter. interrupt enable register the A16450 supports interrupts from four different sources; the interrupt enable register selectively enables or disables interrupts from each of these sources. when a bit is reset to a logic low, the A16450 will not recognize interrupts from that source. table 3 shows the interrupt enable register format.
altera corporation 71 A16450 universal asynchronous receiver/transmitter data sheet interrupt identi?ation register the A16450 has a priority encoding scheme for its four interrupt sources. table 4 shows the encoding scheme for each of the interrupts, their priority, and the reset mechanism for each interrupt source. when set to a logic low, bit 0 indicates that an interrupt is pending. bits 1 and 2 indicate the interrupt priority, and bits 3 through 7 are read-only bits that are always set to a logic low. clearing an interrupt source does not affect any lower priority interrupts that might be pending. when the interrupt identification register is accessed, the highest priority interrupt at the beginning of the access is recorded in the register. other interrupts, including those of higher priority, are recorded but are not recognized until the current register access is complete. table 3. interrupt enable register format bit signal description 0 rda received data available. when set to a logic high, bit 0 enables interrupts when receive data is loaded in the receiver buffer register. 1 thre transmitter holding register empty. when set to a logic high, bit 1 enables interrupts when the transmitter holding register is empty. 2 rls receiver line status. when set to a logic high, bit 2 enables interrupts when the receiver line status register changes state. 3 ms modem status. when set to a logic high, bit 3 enables interrupts when the modem status register changes state. 7..4 read-only bits that are always set to a logic low.
72 altera corporation A16450 universal asynchronous receiver/transmitter data sheet note: (1) the x indicates ?on? care. line control register the line control register sets the data and communication formats used by the A16450 . see table 5 . table 4. interrupt identification register format note (1) bit 0 bit 1 bit 2 bits 7..3 interrupt type interrupt source reset mechanism priority 1 x x 0 no interrupt 0 1 1 0 receiver line status overrun, parity, or framing errors; break interrupt read the receiver line status register highest 0 0 1 0 receiver data available receiver data available read the receiver buffer 2 0 1 0 0 transmitter holding register empty transmitter holding register empty read the interrupt id register or write to the transmitter holding register 3 0 0 0 0 modem status cts , dsr , ri , or dcd change state read the modem status register 4
altera corporation 73 A16450 universal asynchronous receiver/transmitter data sheet table 6 lists the word length associated with bits 0 and 1. table 5. line control register format bit description 1..0 word length control. sets the length of the word associated with each transmitted or received word. see table 6 . 2 stop control bit. controls the number of stop bits generated by the transmitter section. the receiver circuitry checks for the first stop bit only, regardless of the state of bit 2. see table 7 . 3 parity enable. when set to a logic high, parity generation in the transmitter section and parity checking in the receiver section are enabled. the parity bit is inserted between the last word bit and the first stop bit. 4 parity even/odd. when set to a logic high, even parity is enabled; when set to a logic low, odd parity is enabled. 5 stick parity. forces the parity bit to a known value. if parity is enabled and even parity is selected, the transmitter section will transmit the parity bit as a logic low. then, the receiver section checks that the incoming parity bit is set to logic low. 6 break control. when set, bit 6 forces the A16450 to transmit a break condition. the sout output is forced to a logic low state for longer than one full word transmission. disable the break by clearing bit 6, which causes sout to return to a logic high. the sout output is set to a logic high upon master reset. 7 divisor register access bit ( drab ). this bit must be set high to access the divisor registers. a low enables access to the receiver buffer and transmitter holding registers. table 6. word length control format bit 0 bit 1 word length 0 0 5 bits 1 0 6 bits 0 1 7 bits 1 1 8 bits
74 altera corporation A16450 universal asynchronous receiver/transmitter data sheet table 7 lists the number of stop bits and word length associated with bit 2. note: (1) the x indicates ?on? care. modem control register the modem control register controls the modem interface outputs. table 8 describes the modem control register format. line status register the line status register enables the host processor to examine data transfers. table 9 describes the line status register format. table 7. stop bit control format bit 2 word length note (1) number of stop bits 0x1 1 5 bits 1.5 1 6 bits 2 1 7 bits 2 1 8 bits 2 table 8. modem control register format bit signal description 0 dtr data terminal ready. the user can program the dtr bit to control the ndtr output. 1 rts request to send. the user can program the rts bit to control the nrts output. 2 out1 output 1. the user can program the out1 bit to control the nout1 output. 3 out2 output 2. the user can program the out2 bit to control the nout2 output. 4 el enable loopback. when high, bit 4 causes the following: n the sout output is set to a logic high. n the sin input is disconnected (i.e., ignored). n the output of the transmitter shift register is internally connected (loopbacked) to the receiver shift register input. n the modem control inputs are disconnected (i.e., ignored). n the modem control outputs are used internally in place of the modem control inputs. 7..5 not used. these read-only bits are always set to a logic low.
altera corporation 75 A16450 universal asynchronous receiver/transmitter data sheet modem status register the modem status register enables the microprocessr to examine the condition of the modem interface inputs. table 10 shows the modem status register format. table 9. line status register format bit signal description 0 rdr receiver data ready. indicates that an incoming word has been received and transferred to the receiver buffer register. when bit 0 is set to a logic high, a receive data available interrupt is generated. bit 0 is cleared by reading the receiver buffer register. 1 oe overrun error. indicates that new data wrote over unread data in the receiver buffer register. when bit 1 is set to a logic high, a receiver line status interrupt is generated. bit 1 is cleared by reading the line status register. 2 pe parity error. indicates that newly received data had incorrect parity. when bit 2 is set to a logic high, a receiver line status interrupt is generated. bit 2 is cleared by reading the line status register. 3 fe framing error. indicates that newly received data had an invalid stop bit. when bit 3 is set to a logic high, a receiver line status interrupt is generated. bit 2 is cleared by reading the line status register. 4 bi break interrupt. indicates that a break condition was detected on the serial input. a break condition occurs when the serial data in ( sin ) is held at logic low for longer than one full word transmission. when bit 4 is set to a logic high, a receiver line status interrupt is generated. bit 4 is cleared by reading the line status register. 5 thre transmitter holding register empty. indicates that the A16450 is ready to accept a new data word from the microprocessor for transmission. when bit 5 is set to a logic high, a transmitter holding register empty interrupt is generated. bit 5 is cleared by reading the interrupt id register or by writing to the transmitter holding register. 6 tre transmitter empty. indicates that the transmitter holding register and the transmitter shift register are both empty. 7 not used. this read-only bit is always set to a logic low.
76 altera corporation A16450 universal asynchronous receiver/transmitter data sheet scratchpad register the scratchpad register is a general-purpose register provided for the convenience of the user. table 10. modem status register format bit signal description 0 dcts delta clear to send. indicates that the ncts input has changed state since the processor last read the modem status register. when bit 0 is set to a logic high, a modem status interrupt is generated. 1 ddsr delta data set ready. indicates that the ndsr input has changed since the processor last read the modem status register. when bit 1 is set to a logic high, a modem status interrupt is generated. 2 teri trailing edge ring indicator. indicates that a trailing (0 to 1) edge has occurred on the nri input since the processor last read the modem status register. when bit 2 is set to a logic high, a modem status interrupt is generated. 3 ddcd delta data carrier detect. indicates that the ndcd input has changed state since the processor last read the modem status register. when bit 3 is set to a logic high, a modem status interrupt is generated. 4 cts clear to send. this bit is the complement of the ncts input. 5 dsr data set ready. this bit is the complement of the ndsr input. 6 ri ring indicator. this bit is the complement of the nri input. 7 dcd data carrier detect. this bit is the complement of the ndcd input.
altera corporation 77 A16450 universal asynchronous receiver/transmitter data sheet timing waveforms figure 3 shows the read and write cycle waveforms for the A16450 megafunction. figure 3. read & write cycle waveforms figure 4 shows the functional timing waveforms for the A16450 . write cycle read cycle clk nads a[2..0] ncs2, cs1, cs0 csout nwr, wr din[7..0] valid valid active clk nads a[2..0] ncs2, cs1, cs0 csout nrd, rd ddis dout[7..0] valid valid valid active valid
78 altera corporation A16450 universal asynchronous receiver/transmitter data sheet figure 4. A16450 functional timing waveforms clk nbaudout (divide-by-1) nbaudout (divide-by-2) nbaudout (divide-by-3) nbaudout (divide-by- n ) baudout timing ( n -2) clk cycles 2 clk cycles receiver timing sin sample clk intr (data ready or receiver error) nrd, rd active parity stop start transmitter timing sout thre nwr, wr nrd, rd parity stop (1-2) start start data (5-8) modem control timing nwr, wr rts, dtr, out1, out2 cts, dsr, dcd intr nrd, rd ri
altera corporation 79 A16450 universal asynchronous receiver/transmitter data sheet variations & clari?ations the A16450 differs from the national ns16450 device in the following ways: n the bidirectional bus d[7..0] in the ns16450 is split into an input bus din[7..0] and an output bus dout[7..0] in the A16450 . the dout[7..0] bus is the direct output of the output data multiplexer, and is not tri-stated or otherwise affected by the rd or nrd inputs. n in the A16450 megafunction, the address registers are implemented as registers, as opposed to latches in the ns16450 device. these registers use clk as the clock source and nads as a clock enable. n the A16450 megafunction uses a single clk input as the primary clock source. the ns16450 device uses the crystal oscillator interface ( xin input and xout output) as the primary clock source.
copyright ? 1995, 1996, 1997, 1998 , 1 9 9 9 altera corporation, 101 innovation drive, san jose, c a 95134, usa, all rights r eserved. by accessing this information, you ag r ee to be bound by the terms of alteras legal notice.


▲Up To Search▲   

 
Price & Availability of A16450

All Rights Reserved © IC-ON-LINE 2003 - 2022  

[Add Bookmark] [Contact Us] [Link exchange] [Privacy policy]
Mirror Sites :  [www.datasheet.hk]   [www.maxim4u.com]  [www.ic-on-line.cn] [www.ic-on-line.com] [www.ic-on-line.net] [www.alldatasheet.com.cn] [www.gdcy.com]  [www.gdcy.net]


 . . . . .
  We use cookies to deliver the best possible web experience and assist with our advertising efforts. By continuing to use this site, you consent to the use of cookies. For more information on cookies, please take a look at our Privacy Policy. X